<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" 
  prefix="c" %>

<c:forEach items="list" var="rs">
	<c:choose>
		<c:when test="${rs.result}">
			<div class="verify_row ok">
				<div class="left">&nbsp;</div>
		</c:when>
		<c:otherwise>
			<div class="verify_row failed">
				<div class="left"><img src="${resourceUrl}/images/iceberg/install/error.png" /></div>
		</c:otherwise>
			<div class="middle">${rs.name}</div>
			<div class="right">
				${rs.current}
				<c:if test="${!rs.result}">
					<br /><i>${rs.fix}</i>
				</c:if>
			</div>
		</div>
	</c:choose>
</c:forEach>

<c:choose>
	<c:when test="${failed}">
		<p class="error"><i>Please check the error messages before proceeding with the installation</i></p>
		<div class="button_holder">
			<form method="get" name="form">
				<input type="hidden" name="license" value="1" />
				<a href="${currentUrl}">Check again</a>
			</form>
		</div>
		</c:when>
	<c:otherwise>
		<div class="button_holder">
			<form method="get" name="form" action="${currentUrl}">
				<input type="hidden" name="passed" value="1" />
				<a onclick="form.submit();" class="button">Continue</a>
				or <a href="${currentUrl}">Check again</a>
			</form>
		</div>
	</c:otherwise>
</c:choose>